import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

public class test4 {
    public static void main(String[] args) throws IOException {
        try(Writer writer = new FileWriter("./test2",true) ){
            writer.write("你好");
        }
    }
}
